<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<HTML
><HEAD
><TITLE
>mod_dpsearch module for Apache httpd</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK
REL="HOME"
TITLE="DataparkSearch Engine 4.53"
HREF="index.en.html"><LINK
REL="UP"
TITLE="Searching documents"
HREF="dpsearch-doingsearch.en.html"><LINK
REL="PREVIOUS"
TITLE="Searching documents"
HREF="dpsearch-doingsearch.en.html"><LINK
REL="NEXT"
TITLE="How to write search result templates"
HREF="dpsearch-templates.en.html"><LINK
REL="STYLESHEET"
TYPE="text/css"
HREF="datapark.css"><META
NAME="Description"
CONTENT="DataparkSearch - Full Featured Web site Open Source Search Engine Software over the Internet and Intranet Web Sites Based on SQL Database. It is a Free search software covered by GNU license."><META
NAME="Keywords"
CONTENT="shareware, freeware, download, internet, unix, utilities, search engine, text retrieval, knowledge retrieval, text search, information retrieval, database search, mining, intranet, webserver, index, spider, filesearch, meta, free, open source, full-text, udmsearch, website, find, opensource, search, searching, software, udmsearch, engine, indexing, system, web, ftp, http, cgi, php, SQL, MySQL, database, php3, FreeBSD, Linux, Unix, DataparkSearch, MacOS X, Mac OS X, Windows, 2000, NT, 95, 98, GNU, GPL, url, grabbing"></HEAD
><BODY
CLASS="SECT1"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000C4"
VLINK="#1200B2"
ALINK="#C40000"
><!--#include virtual="body-before.html"--><DIV
CLASS="NAVHEADER"
><TABLE
SUMMARY="Header navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>DataparkSearch Engine 4.53: Reference manual</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="dpsearch-doingsearch.en.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
>Chapter 8. Searching documents</TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="dpsearch-templates.en.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="SECT1"
><H1
CLASS="SECT1"
><A
NAME="MOD_DPSEARCH"
>8.2. <TT
CLASS="LITERAL"
>mod_dpsearch</TT
> module for Apache httpd</A
></H1
><A
NAME="AEN4921"
></A
><A
NAME="AEN4923"
></A
><A
NAME="AEN4926"
></A
><A
NAME="AEN4929"
></A
><P
>Since version 4.19 <SPAN
CLASS="APPLICATION"
>DataparkSearch</SPAN
> also provide the <TT
CLASS="LITERAL"
>mod_dpsearch.so</TT
>
module for <SPAN
CLASS="APPLICATION"
>Apache</SPAN
> web server.</P
><DIV
CLASS="SECT2"
><H2
CLASS="SECT2"
><A
NAME="MOD_DPSEARCH-WHY"
>8.2.1. Why using <TT
CLASS="LITERAL"
>mod_dpsearch</TT
></A
></H2
><P
></P
><UL
><LI
><P
>As for <B
CLASS="COMMAND"
>searchd</B
> (see <A
HREF="dpsearch-searchd.en.html#SEARCHD-WHY"
>Section 5.4.1</A
>&#62;), <B
CLASS="COMMAND"
>mod_dpsearch</B
> can hold preloaded in memory 
some data to speed-up searches.</P
></LI
><LI
><P
>In additional, <B
CLASS="COMMAND"
>mod_dpsearch</B
> hold in memory last used search template. 
This save time on template loading and parsing for every request since second.</P
></LI
><LI
><P
>As a plus, the <B
CLASS="COMMAND"
>mod_dpsearch</B
> itself already loaded into memory when search request come from user, while
search.cgi usualy loads from disk for every search request.</P
></LI
></UL
></DIV
><DIV
CLASS="SECT2"
><H2
CLASS="SECT2"
><A
NAME="MOD_DPSEARCH-CFG"
>8.2.2. Configuring <TT
CLASS="LITERAL"
>mod_dpsearch</TT
></A
></H2
><P
>To enable this extension, add <CODE
CLASS="OPTION"
>--enable-apache-module</CODE
> switch to <B
CLASS="COMMAND"
>configure</B
>.
In addition, the <TT
CLASS="LITERAL"
>mod_dpsearch.so</TT
> shared library will be created and installed into 
<SPAN
CLASS="APPLICATION"
>Apache</SPAN
> tree. Then you need activate this module by adding following line into
<SPAN
CLASS="APPLICATION"
>Apache</SPAN
> configuration file:

<PRE
CLASS="PROGRAMLISTING"
>LoadModule dpsearch_module       libexec/mod_dpsearch.so
AddModule mod_dpsearch.c

&lt;Ifmodule mod_dpsearch.c&gt;
DataparkSearchdConf /usr/local/dpsearch/etc/modsearchd.conf
    &lt;Location /search&gt;
        SetHandler dpsearch
        DataparkSearchTemplate /usr/local/dpsearch/etc/modsearch.htm
    &lt;/Location&gt;
    &lt;Location /storedoc&gt;
        SetHandler dpstoredoc
        DataparkStoredocTemplate /usr/local/dpsearch/etc/modstoredoc.htm
    &lt;/Location&gt;
&lt;/IfModule&gt;</PRE
></P
><P
>There are three configuration directives supported by this module: <CODE
CLASS="OPTION"
>DataparkSearchdConf</CODE
>,
<CODE
CLASS="OPTION"
>DataparkSearchTemplate</CODE
> and <CODE
CLASS="OPTION"
>DataparkStoredocTemplate</CODE
> . 
The <CODE
CLASS="OPTION"
>DataparkSearchdConf</CODE
> optional directive specify a <B
CLASS="COMMAND"
>searchd</B
>
related configuration file. It may be only one per server. 
The <CODE
CLASS="OPTION"
>DataparkSearchdTemplate</CODE
> directive specify a search template file. 
The <CODE
CLASS="OPTION"
>DataparkStoredocTemplate</CODE
> directive specify a storedoc template file. 
There can be several templates specified per servers, by one per location. 
If <CODE
CLASS="OPTION"
>DataparkSearchdConf</CODE
> directive specified, there no need specify <CODE
CLASS="OPTION"
>DBAddr</CODE
> command in templates.</P
></DIV
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
SUMMARY="Footer navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="dpsearch-doingsearch.en.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.en.html"
ACCESSKEY="H"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="dpsearch-templates.en.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>Searching documents</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="dpsearch-doingsearch.en.html"
ACCESSKEY="U"
>Up</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>How to write search result templates</TD
></TR
></TABLE
></DIV
><!--#include virtual="body-after.html"--></BODY
></HTML
>